public class Main {
    public static void main(String[] args) {
        System.out.println("===================");
        PersonA ming = new PersonA();
        ming.setName( "Xiao Ming"); // 对字段name赋值
        ming.setAge(12); // 对字段age赋值
        System.out.println(ming.getName()+","+ming.getAge());
        System.out.println("===================");
        Person hong = new Person("Xiao Hong", 18);
        System.out.println(hong.getName()+","+hong.getAge());
        System.out.println("===================");

        Person limbo = new Person();
        System.out.println(limbo.getName()+","+limbo.getAge());
        System.out.println("===================");
        System.out.println("使用方法重载~~~");

        Person person1 = new Person();
        person1.setName("zane","xenia"); // 对字段name赋值
        System.out.println(person1.getName());

        System.out.println("===================");
        System.out.println("继承的使用~~~");

        Student student1 = new Student();
        student1.setName("Xian Li");
        student1.setHeight(178);

        System.out.println("学生"+student1.getName()+","+student1.getHeight());


    }
}
